<template>
  <h1>Vue3</h1>
  {{ msg }}
  {{ count }}
  {{ $ms }}
  <button @click="onClick">点击</button>
  <hello-world />
</template>

<script>
import HelloWorld from "./components/HelloWorld.vue";

export default {
  name: "App",
  components: {
    HelloWorld,
  },
  data() {
    return {
      msg: "hello",
      count: 0,
    };
  },
  methods: {
    onClick() {
      console.log("点击了。。。");
      this.count++;
    },
  },
  mounted() {
    console.log(this.$ms);
  },
};
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
